<template>
  <div>
       <!-- 头部 -->
        <div class="Stop">
            <div class="StopO">
                <!-- <i @click="Sbackto()" class="Stfan"></i> -->
                <p class="StopOne">{{txt}}</p>
                <!-- <p class="Stopmsg">编辑</p> -->
            </div> 
           
        </div>
  </div>
</template>

<script>
import Bus from '../ma/Bus';

export default {
    name:'Header',
    data(){
        return{
            
        }
    },
    props:{
        txt:String
    },
    mounted(){
        Bus.$on('aa',data=>{
           this.txt = data;
       });
    }
}
</script>

<style  scoped>
/* 头部 */
.Stop {
    background-color: #e53e42;
    width: 100%;
    height: 9.6rem;
    color: #fff;
    font-size: 3.6rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}
.StopO {
    height:9.6rem;
    padding: 0 2rem;
    line-height: 9.6rem;
    text-align: left;
}
.StopOne {
    position: absolute;
    z-index: 2;
    top: 50%;
    margin-top: -4.8rem;
    left: 50%;
    margin-left: -9.4rem;
}
.Stopmsg {
    position: absolute;
    right: 2rem;
    top: 0;
    top: 2rem;
    margin-top: -1.9rem;
    line-height:9.6rem ;
}
</style>